﻿using System.Collections.Generic;
using System.Web.Http;
using System.Web.Http.Controllers;
using System.Web.Http.Filters;

namespace StructuredProgrammingAssignment.Models.Helpers
{
	public class PerformanceFilterProvider : IFilterProvider
	{
		public IEnumerable<FilterInfo> GetFilters(HttpConfiguration controllerContext, HttpActionDescriptor actionDescriptor) {
			return new[] { new FilterInfo(new PerformanceFilter(), FilterScope.Global) };
		}
	}
}